﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CWB.Common.Utilities
{
    public class StringHelper
    {
        public static string ReplaceBreakLineToBR(string str)
        {
            if (str.Contains("\r\n"))
            {
                return str.Replace(System.Environment.NewLine, "<br>");
            }
            else if (str.Contains("\r"))
            {
                return str.Replace("\r", "<br>");
            }
            else
            {
                return str.Replace("\n", "<br>");
            }
        }

    }
}
